import cv2
from PIL import Image 
import PIL
img = Image.open("/home/meroke/code/detection/train_images/1.jpg")

img = img.transpose(Image.ROTATE_180)
img.show()